home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / daemons / ipServer / RCS / socket.h,v < prev    next >
Encoding:
Text File  |  1989-08-16  |  2.9 KB  |  147 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.3
  10. date     89.08.15.19.55.41;  author rab;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     88.08.16.11.16.45;  author mendel;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     88.04.27.09.01.46;  author brent;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @external defs
  27. @
  28.  
  29.  
  30. 1.3
  31. log
  32. @Commented #endif labels.
  33. @
  34. text
  35. @/*
  36.  * socket.h --
  37.  *
  38.  *    External declarations of the socket-related routines.
  39.  *
  40.  * Copyright 1987 Regents of the University of California
  41.  * All rights reserved.
  42.  * Permission to use, copy, modify, and distribute this
  43.  * software and its documentation for any purpose and without
  44.  * fee is hereby granted, provided that the above copyright
  45.  * notice appear in all copies.  The University of California
  46.  * makes no representations about the suitability of this
  47.  * software for any purpose.  It is provided "as is" without
  48.  * express or implied warranty.
  49.  *
  50.  *
  51.  * $Header: /sprite/src/daemons/ipServer/RCS/socket.h,v 1.2 88/08/16 11:16:45 mendel Exp Locker: rab $ SPRITE (Berkeley)
  52.  */
  53.  
  54. #ifndef _IPS_SOCKET
  55. #define _IPS_SOCKET
  56.  
  57. #include "sprite.h"
  58. #include "dev/net.h"
  59.  
  60. #include "sockInt.h"
  61.  
  62. /* constants */
  63.  
  64. /* data structures */
  65.  
  66. typedef struct Sock_SharedInfo *Sock_InfoPtr;
  67.  
  68. /* procedures */
  69.  
  70. extern void        Sock_Init();
  71. extern ReturnStatus    Sock_Open();
  72. extern ReturnStatus    Sock_Close();
  73. extern ReturnStatus    Sock_Read();
  74. extern ReturnStatus    Sock_Write();
  75. extern ReturnStatus    Sock_IOControl();
  76. extern int        Sock_Select();
  77. extern void        Sock_ReturnError();
  78. extern void        Sock_SetError();
  79. extern Sock_InfoPtr    Sock_Match();
  80. extern Sock_InfoPtr    Sock_Clone();
  81. extern void        Sock_Destroy();
  82. extern void        Sock_NotifyWaiter();
  83. extern void        Sock_HaveUrgentData();
  84. extern void        Sock_Connected();
  85. extern void        Sock_Disconnected();
  86. extern void        Sock_Disconnecting();
  87. extern Boolean        Sock_IsOptionSet();
  88. extern Boolean        Sock_HasUsers();
  89. extern Boolean        Sock_IsRecvStopped();
  90. extern Boolean        Sock_IsSendStopped();
  91. extern void        Sock_UrgentDataNext();
  92. extern void        Sock_StopRecv();
  93. extern void        Sock_StopSending();
  94. extern Sock_InfoPtr    Sock_ScanList();
  95. extern void        Sock_BadRoute();
  96. extern int        Sock_PrintInfo();
  97.  
  98. extern int        Sock_BufSize();
  99. extern void        Sock_BufRemove();
  100. extern ReturnStatus    Sock_BufAppend();
  101. extern void        Sock_BufCopy();
  102. extern void        Sock_BufAlloc();
  103. extern ReturnStatus    Sock_BufFetch();
  104.  
  105. typedef enum{
  106.     SOCK_RECV_BUF,
  107.     SOCK_SEND_BUF,
  108. } Sock_BufType;
  109.  
  110. typedef enum {
  111.     SOCK_BUF_USED,
  112.     SOCK_BUF_FREE,
  113.     SOCK_BUF_MAX_SIZE,
  114. } Sock_BufRequest;
  115.  
  116. #define SOCK_BUF_PEEK    NET_PEEK
  117. #define SOCK_BUF_STREAM    0x80000000
  118.  
  119. #endif /* _IPS_SOCKET */
  120. @
  121.  
  122.  
  123. 1.2
  124. log
  125. @Converted to use new libc.a
  126. @
  127. text
  128. @d17 1
  129. a17 1
  130.  * $Header: socket.h,v 1.1 88/04/27 09:01:46 brent Exp $ SPRITE (Berkeley)
  131. d85 1
  132. a85 1
  133. #endif _IPS_SOCKET
  134. @
  135.  
  136.  
  137. 1.1
  138. log
  139. @Initial revision
  140. @
  141. text
  142. @d17 1
  143. a17 1
  144.  * $Header: socket.h,v 6.0 87/09/08 15:57:53 andrew Stable $ SPRITE (Berkeley)
  145. d25 2
  146. @
  147.